package com.sk.sk_frame_cloud.controller;


import com.sk.sk_frame_cloud.feign.UserFeignService;
import com.sk.sk_frame_cloud.param.ProManageParam;
import com.sk.sk_frame_cloud.res.CommonResponse;
import com.sk.sk_frame_cloud.service.ISysProManageService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 项目信息管理
 * @author jiaok
 * @since 2023-12-15
 */
@RestController
@RequestMapping("sys-pro-manage")
public class SysProManageController {

    @Resource
    private ISysProManageService iSysProManageService;


    @Resource
    private UserFeignService userFeignService;

    @ApiOperation("创建项目")
    @PostMapping({"createPro"})
    public CommonResponse createPro(@RequestBody ProManageParam proManageParam) {
        return    iSysProManageService.createPro(proManageParam);
    }

    @ApiOperation("创建项目")
    @PostMapping({"test"})
    public String test() {
        return  new String("测试成功");
    }


    @PostMapping({"feignTest"})
    public CommonResponse feignTest() {
        return  userFeignService.userFeignTest();
    }

}
